import request from '@/utils/request'

// 查询任务资料列表
export function resourceList(query) {
  return request({
    url: '/task/resource/list',
    method: 'get',
    params: query
  })
}
// 新增任务资料
export function addresource(data) {
  return request({
    url: '/task/resource',
    method: 'post',
    data: data
  })
}


// 获取任务资料详细信息
export function resourceId(id) {
  return request({
    url: `/task/resource/${id}`,
    method: 'get',
  })
}


// 修改任务资料
export function eitHresource(data) {
  return request({
    url: '/task/resource',
    method: 'put',
    data: data
  })
}

// 删除任务资料
export function delresource(id) {
  return request({
    url: `/task/resource/${id}`,
    method: 'delete'
  })
}

// 导出品类列表
export function exporTresource(data) {
  return request({
    url: '/task/resource/export',
    method: 'post',
    data: data
  })
}

// 审核任务资料
export function resourceAudit(query) {
  return request({
    url: '/task/resource/audit',
    method: 'get',
    params: query
  })
}